﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="record_detail_i_accept_form.aspx.cs" Inherits="RTGS.Web.form.rtgs.form_rtgs_record_detail_i_accept_form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="<%= ResolveClientUrl("~/css/jquery.validate.error.css") %>" rel="stylesheet"
        type="text/css" />
    <script src="<%= ResolveClientUrl("~/script/helper.js") %>" type="text/javascript"></script>
    <script src="<%= ResolveClientUrl("~/script/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%= ResolveClientUrl("~/script/jquery.validate.wrapper.js") %>" type="text/javascript"></script>
    
       <script type="text/javascript">

           $(document).ready(function () {
               

               $("#save").click(function () {
                   var id = $('#<%= hfID.ClientID %>').val();
                   var handlerUrl = '<%= ResolveClientUrl("~/ajaxhandler/rtgs/stp_record_detail_i_accept.ashx") %>';

                   //if (id == 0)
                   //    CallAjax(handlerUrl, "?method=insert&typeIncoming=" + typeIncoming + param);
                   //else
                       CallAjax(handlerUrl, "?method=update&id=" + id);

                   parent.$('#dialog').dialog("close");

                   setTimeout("parent.$('#table').trigger('reloadGrid');", 3000);
                   return false;
               });
           });
    </script>

  </head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="pnlGroupBox" runat="server" GroupingText="TRN">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        TRN
                    </td>
                    <td style="padding-left: 120px">
                        <asp:DropDownList ID="ddlTrn" Enabled="false" runat="server"  Width="250px">
                        </asp:DropDownList>
                    </td>
                    <td style="padding-left: 40px">
                        Related TRN
                    </td>
                    <td style="padding-left: 20px">
                        <asp:TextBox ID="txtRelatedTrn" runat="server" ReadOnly="true" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td>
                        Trn Desc.
                    </td>
                    <td style="padding-left: 120px">
                        <asp:TextBox ID="txtTrnDesc" ReadOnly="true" runat="server" Width="500" Rows="1"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <table border="0">
            <tr>
                <td>
                    <asp:Panel ID="Panel1" runat="server" GroupingText="Debit Participant's Client">
                        <table border="0">
                            <tr>
                                <td>
                                    Debit Participant's Client
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDebitParticipantsClient" MaxLength="140" ReadOnly="true" runat="server" TextMode="MultiLine"
                                        Width="300px" Rows="1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Account of Debit Participant's Client
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAccountDebitParticipantsClient" MaxLength="24" ReadOnly="true" runat="server" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
                <td>
                    <asp:Panel ID="Panel2" runat="server" GroupingText="Credit Participant's Client">
                        <table border="0">
                            <tr>
                                <td>
                                    Credit Participant's Client
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCreditParticipantsClient" runat="server" MaxLength="140" ReadOnly="true" TextMode="MultiLine"
                                        Width="300px" Rows="1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Account of Debit Participant's Client
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAccountParticipantsClient" MaxLength="24" runat="server" ReadOnly="true" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="Panel3" runat="server" GroupingText="Debit Participant">
                        <table border="0">
                            <tr>
                                <td>
                                    Debit Participant
                                </td>
                                <td>
                                  <asp:DropDownList ID="ddlDebitParticipant" runat="server" Enabled="false" Width="300px"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Account
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAccountDebitParticipant" MaxLength="140" runat="server" ReadOnly="true" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                              <tr>
                                <td>
                                    Name
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNameCodeDebit" MaxLength="24" runat="server" ReadOnly="true" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
                <td>
                    <asp:Panel ID="Panel4" runat="server" GroupingText="Credit Participant">
                        <table border="0">
                            <tr>
                                <td>
                                    Credit Participant
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlCreditParticipant" runat="server" Enabled="false"  Width="300px"></asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Account
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAccountCreditParticipant" MaxLength="140" runat="server" ReadOnly="true" Width="300px"></asp:TextBox>
                                </td>
                            </tr>

                             <tr>
                                <td>
                                    Name
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNameCodeCredit" MaxLength="24" runat="server" ReadOnly="true" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="Panel5" runat="server" GroupingText="Amount">
                        <table border="0">
                            <tr>
                                <td>
                                    Amount
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAmount" runat="server" Width="300px" ReadOnly="true" Rows="1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Currency
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCurrency" MaxLength="3" runat="server" ReadOnly="true" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Bussines Day
                                </td>
                                <td>
                                    <asp:TextBox ID="txtBussinesDay" MaxLength="8" runat="server" ReadOnly="true" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
                <td>
                    <asp:Panel ID="Panel6" runat="server" GroupingText="Details">
                        <table border="0">
                            <tr>
                                <td>
                                    Remitance Information
                                </td>
                                <td>
                                    <asp:TextBox ID="txtRemitanceInformation" MaxLength="72" ReadOnly="true" TextMode="MultiLine" runat="server" Width="300px"
                                        Rows="1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Details Of Charges
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDetailOfCharges" MaxLength="1" ReadOnly="true" runat="server" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Transaction's Sub Type Code
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTransactionSubTypeCode" MaxLength="3" ReadOnly="true" runat="server" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Sender To Receiver Information
                                </td>
                                <td> 
                                    <asp:TextBox ID="txtSender" MaxLength="96" ReadOnly="true" runat="server" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="Panel7" runat="server" GroupingText="Priority">
                        <table border="0">
                            <tr>
                                <td>
                                    Priority
                                </td>
                                <td> 
                                    <asp:TextBox ID="txtPriority" runat="server" ReadOnly="true" Width="300px" Rows="1"></asp:TextBox>
                                </td>
                            </tr>
                               <tr>
                                <td>
                                    Reason
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlReason" runat="server" Enabled="false" Width="300"></asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
                <td>
                    <asp:Panel ID="Panel8" runat="server" GroupingText="Draft Details">
                        <table border="0">
                            <tr>
                                <td>
                                    Document Step
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDocumentStep" ReadOnly="true" runat="server" Width="300px" Rows="1"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Comment Charges
                                </td>
                                <td>
                                    <asp:TextBox ID="txtCommentCharges" ReadOnly="true" runat="server" Width="300px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                   
                        <div style="text-align: right; padding-top: 10px;">
                           <a href="#" id="save" class="dialog_link ui-state-default ui-corner-all" alt="Save"
                            onclick="parent.$('#dialog').dialog('Save');"><span class="ui-icon ui-icon-close">
                            </span>Save</a>&nbsp;<a href="#" id="close" class="dialog_link ui-state-default ui-corner-all" alt="Close"
                                onclick="parent.$('#dialog').dialog('close');"><span class="ui-icon ui-icon-close">
                                </span>Close</a>
                        </div>
                    </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:HiddenField ID="hfID" runat="server" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
